GtkSnapshot: Reuse snapshot state objects
authorAlexander Larsson <alexl@redhat.com>
Wed, 11 Jan 2017 10:41:46 +0000 (11:41 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 11 Jan 2017 10:41:46 +0000 (11:41 +0100)
commit6341fab985864cfa337c55cb35e06a7b13119838
tree4d9bbf68074d8522a5e8b48b1a69e22cf2b42b73
parentf67ae85b7a33bf1a6a141050d5fc659b0c678d1b
GtkSnapshot: Reuse snapshot state objects

Rather than allocate new ones all the time we reuse the previous ones.
We just clear them and save them in the parent for later reuse.
gtk/gtksnapshot.c
gtk/gtksnapshotprivate.h